package com.boilerCloud.dto.device;

import java.util.Date;

public class DeviceInfo{
    private int id;
    private String orderNo;
    private String name;
    private int runtime;
    private int projectId;
    private int userId;//app_user 表
    private int status;
    private int modelId;
    private Date createTime;
    private Date modifyTime;
   // private String isDelete;
    private String longitude;
    private String latitude;
    private int typeId;
    private String serialNumber; //设备序列号
    private String commSerialNumber;//通讯序列号
    private String address;

    private String modelName; //模板/类型 名称
    private String picUrl; //设备图片/模板图片
    private String creatorId;//创建人
    private String projectName;
	private int commType = 1;
    private String username; //创建人姓名
    private String mark; //设备备注
    
    private int projectIdNoBind;  //用于查询未绑定项目的设备的条件
    private String deviceIds;//多个设备id 逗号分隔
    private String customerName;
    
    private String commTypeName;
    
    private String boxId;
    private int dealerId;
	private String dicId;
	private String dicCode;
	private String dicNames;
    
   private int state;
   
   private long queryTime;
    

	public String getOrderNo() {
		return orderNo;
	}
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	public int getModelId() {
		return modelId;
	}
	public void setModelId(int modelId) {
		this.modelId = modelId;
	}
	public String getModelName() {
		return modelName;
	}
	public void setModelName(String modelName) {
		this.modelName = modelName;
	}
	public int getCommType() {
		return commType;
	}
	public void setCommType(int commType) {
		this.commType = commType;
		if(commType == 1){
			this.commTypeName = "FBox";
		}else if(commType ==2){
			this.commTypeName = "蓝牙";
		}else{
			this.commTypeName = "其他";
		}
	}
	public String getCommSerialNumber() {
		return commSerialNumber;
	}
	public void setCommSerialNumber(String commSerialNumber) {
		this.commSerialNumber = commSerialNumber;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getMark() {
		return mark;
	}
	public void setMark(String mark) {
		this.mark = mark;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getRuntime() {
		return runtime;
	}
	public void setRuntime(int runtime) {
		this.runtime = runtime;
	}
	public int getProjectId() {
		return projectId;
	}
	public void setProjectId(int projectId) {
		this.projectId = projectId;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getModifyTime() {
		return modifyTime;
	}
	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}
	public String getLongitude() {
		return longitude;
	}
	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}
	public String getLatitude() {
		return latitude;
	}
	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}
	public int getTypeId() {
		return typeId;
	}
	public void setTypeId(int typeId) {
		this.typeId = typeId;
	}
	
	public String getCreatorId() {
		return creatorId;
	}
	public void setCreatorId(String creatorId) {
		this.creatorId = creatorId;
	}
	
	public String getProjectName() {
		return projectName;
	}
	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}
	public int getProjectIdNoBind() {
		return this.projectIdNoBind;
	}
	public void setProjectIdNoBind(int projectIdNoBind) {
		this.projectIdNoBind = projectIdNoBind;
	}
	public String getSerialNumber() {
		return this.serialNumber;
	}
	public void setSerialNumber(String serialNumber) {
		this.serialNumber = serialNumber;
	}
	public String getDeviceIds() {
		return this.deviceIds;
	}
	public void setDeviceIds(String deviceIds) {
		this.deviceIds = deviceIds;
	}
	/**
	 * <p>Title: toString</p>
	 * <p>Description:(一句话阐述): </p>
	 * @return
	 * @author Ran_cc 
	 * @date 2018年3月15日
	 */
	@Override
	public String toString() {
		return "DeviceInfo [id=" + this.id + ", " 
				 + (this.name != null ? "name=" + this.name + ", " : "") + "runtime="
				 + this.runtime + ", projectId=" + this.projectId + ", userId=" + this.userId + ", "
				 + "status="+ this.status + ", modelId=" + this.modelId + ", " + (this.createTime != null
						? "createTime=" + this.createTime + ", " : "") + (this.modifyTime != null
								? "modifyTime=" + this.modifyTime + ", " : "") + (this.longitude != null
										? "longitude=" + this.longitude + ", " : "") + (this.latitude != null
												? "latitude=" + this.latitude + ", " : "") + "typeId="
				+ this.typeId + ", " + (this.serialNumber != null ? "serialNumber=" + this.serialNumber + ", "
						: "") 
			
				+ (this.creatorId != null ? "creatorId=" + this.creatorId + ", " : "")
				+ (this.projectName != null ? "projectName=" + this.projectName + ", " : "")
				+ (this.username != null ? "username=" + this.username + ", " : "") + (this.mark != null
						? "mark=" + this.mark + ", " : "") + "projectIdNoBind=" + this.projectIdNoBind + ", "
				+ (this.deviceIds != null ? "deviceIds=" + this.deviceIds : "") + "]";
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	
	public String getPicUrl() {
		return this.picUrl;
	}
	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}
	public String getCustomerName() {
		return customerName;
	}
	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}
	public String getCommTypeName() {
		return commTypeName;
	}
	public void setCommTypeName(String commTypeName) {
		this.commTypeName = commTypeName;
	}
	public String getBoxId() {
		return boxId;
	}
	public void setBoxId(String boxId) {
		this.boxId = boxId;
	}
	public int getDealerId() {
		return dealerId;
	}
	public void setDealerId(int dealerId) {
		this.dealerId = dealerId;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	public long getQueryTime() {
		return queryTime;
	}
	public void setQueryTime(long queryTime) {
		this.queryTime = queryTime;
	}

	public String getDicId() {
		return this.dicId;
	}

	public void setDicId( String dicId ) {
		this.dicId = dicId;
	}

	public String getDicCode() {
		return dicCode;
	}

	public void setDicCode(String dicCode) {
		this.dicCode = dicCode;
	}

	public String getDicNames() {
		return dicNames;
	}

	public void setDicNames(String dicNames) {
		this.dicNames = dicNames;
	}
    
    
    
}